Morgan Stanley Interview Question

easy medium ds algo questions java multithreading