Coding tests for Swift 4

ios
MIDDLE