HeavenHR interview question

coding challenge based on REST services