Single Number Leetcode Python Questions For Loops Matlab