Meta Interview Question

Two LC-style questions (Both medium difficulty)