solving problem at whiteboard