Added solution for majority element problem

Added solution for majority element problem