Someone solved this in 3 rows. Your turn.

Mystery Function