Majority Counting, Rearrange Array, Repeated Pattern, Subarray Sum

Majority Counting, Rearrange Array, Repeated Pattern, Subarray Sum