KMC Solutions interview question

Why did you chooses this specific function?