Marvell Technology interview question

1 write malloc with assignment 2 count 1s in an int number 3 implement strstr