Practicing some good problems in Js