LinkedIn interview question

They asked a specific javascript function be coded in several different ways or algorithms.