High Voltage interview question

Why did you write this function, when only 2 games use it ?