UBS interview question

Spider , Fly Leg Puzzle