Twitter University Recruiting for Software Developer Intern

Current Position: Programmer at Americaneagle.com
Location: Des Plaines, Illinois

1st Round - Technical Coding Challenge
Duration to Complete - 10080 mins

Coding Questions

  1. Given an Apache-style web server log, calculate and report the success rate per endpoint per minute.
  2. Mask email address and phone number in a human friendly way.

Email : Only show the first and last characters of the username component of an email address, along with the email domain name. Include exactly 5 stars in the middle of the email username to mask the length.
Example: jackAndJill@gmail.com --> j****l@gmail.com

Phone : Mask all the digits in a phone number except the last 4. Each number should be replaced by star. Input Phone numbers can be with or without country code. Input Phone numbers can only have ‘+’, ‘(’, ‘)’ or ‘-’ in them along with numbers and spaces. Make sure ‘+’ is not masked in the output and make sure the number of stars is equal to the number of digits while masking. Phone numbers will always have 10 digits without country code and with country code they could be up to 13 digits.
Example: +111 (333) 444-5678 --> +***-***-***-5678