I got this from the Unity codility a couple of months back. The first question was pretty simple where we had to determine equal number of stick breaking to equal to a certain number.
The second question was more interesting since I did not really understand graph questions. This was the question listed. 