結果 : how to determine time complexity java