passed all test cases on Try Statement