J - Reached Safely Or Not | CodeChef