Function One Variable Max Problem