Compute city skyline silhouette | TikTok Interview Question