Y Lift interview question

Some easy javascript leet-code style questions. Googling and stack overflow was an option provided to me.