Tenor Interview Question

Take home coding challenge.