IBM Interview Question

2 med leetcodes but no response after