Gridspace interview question

one coding question and one math problem (like a word problem)