IBM interview question

coding assessment and leet code