Sansan interview question

basic algorithms, loops, string, syntax