Block Interview Question

Asked to implement simple problems. They seemed more concerned about the thought process and code cleanliness than perfect solutions