User Input Output Leetcode Python Solutions