Crossover for Work interview question

To complete aptitude test and then a 3h coding challenge which in reality was more than 8h.