Analyse the worst case running time of the following three program fragments.