Doran Jones interview question

Standard easy leet code coding challenges