modify main function for leetcode summit