Walmart Interview Question

Calculate time complexity algorithms java programs.