FarMart Interview Question

Design solution for URL encoding system