Problem

Return true if n contains the digit 7.

Examples

  • hasDigitSeven(172) -> true
  • hasDigitSeven(123) -> false
Compile and test (Ctrl+Enter)