Algorithm For Binary Sort Leetcode