Kickdrum Interview Question

first round was dsa coding