Sollicitatievraag bij Valens Semiconductor

C coding questions: 1) What could be wrong with a given function (They hand you an example of some function code) 2) Write an algorithm that calculates the occasions number of 1-s in a sequence of a binary number