Problem 4 : Logical and Mathematical Operations