PTC interview question

It was a home task