Millennium Interview Question

Just ordinary leet code problems