Analyse the worst case running time of the following three program fragments. Select the most tight upper bound.