Sansan Interview Question

basic algorithms, loops, string, syntax