Chalk interview question

Use CoderPad to finish a take-home coding test. The coding time is one hour.