Divide a lunch bill between two friends fairly with a Python function.
Write a Python function named `split_bill` that helps Ken and Jen split their lunch bill fairly. Ken enjoys spicy food so he covers the cost for all spicy dishes, while Jen, who can't handle spice, only pays for half the cost of non-spicy dishes. ### Parameters - `spicy`: A list of strings where 'S' symbolizes spicy dishes and 'N' specifies non-spicy dishes. - `cost`: A list of integers where each element represents the cost of the corresponding dish in the `spicy` list. ### Return Value - The function returns a list of two integers. The first element is the total cost Ken should pay, and the second element signifies the total cost Jen should pay. ### Examples ```python # Ken pays for all spicy dishes (13 + 15 + 4 = 32) and half of non-spicy dishes (18/2 = 9), Jen pays the other half (18/2 = 9) split_bill(["S", "N", "S", "S"], [13, 18, 15, 4]) # Returns: [41, 9] # Ken pays for the spicy dish (10) and half of non-spicy dishes ((10 + 20)/2 = 15), Jen pays the other half ((10 + 20)/2 = 15) split_bill(["N", "S", "N"], [10, 10, 20]) # Returns: [25, 15] # All dishes are non-spicy, Ken and Jen split the bill evenly split_bill(["N", "N"], [10, 10]) # Returns: [10, 10] # Ken pays for the spicy dish (41) and half of non-spicy dish (10/2 = 5), Jen pays the other half (10/2 = 5) split_bill(["S", "N"], [41, 10]) # Returns: [46, 5] ```