Pref-14 and pref-17 are failing

Please help me in these two test cases.

Continuing this on Slack.

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.