Jacobs interview question

Calculating the frame