Altimetrik interview question

array reverse