icse 2008 height and distance solution