Meta Interview Question

Two easy leetcode style questions