Toptal Interview Question

Very stupid Algo questions about geometry when I literally write HTML and CSS all day long.