IDZ Solutions interview question

calculate distance between two walls