I am not sure if the problem lies in my logic, or incorrect use of syntax :/
Gives the error "ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SET Answer = "Leap Year"; ELSE SET Answer = "Not a Leap Year";"
DELIMITER $$
DROP FUNCTION IF EXISTS f_Leap_Year;
CREATE FUNCTION f_Leap_Year(ENTER_YEAR INT)
RETURNS VARCHAR(30)
BEGIN
DECLARE Answer VARCHAR(30);
DECLARE ENTER_YEAR INTEGER;
If (Enter_Year % 400 = 0
OR (Enter_Year % 4 =0 and not Enter_Year % 100 = 0))
SET Answer = "Leap Year";
ELSE SET Answer = "Not a Leap Year";
RETURN Answer;
END $$